<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <title>i幸会官网--学实战营销,上i幸会</title>
	<meta name="description" content="营销人专属学习平台，从问答到日课，从资讯到文章，汲取众家思想之长，让你身在市场仍能不断成长。" />
    <meta name="keywords" content="i幸会官网,i幸会,i幸会app,市场营销,营销技巧,营销培训,数字营销,量子营销,营销课程,营销案例,营销方案,营销规划,营销书籍,营销方法,营销策划,营销策略,营销心得,营销视频,营销文章,营销音频,营销社群,营销模式,内容营销,营销文案" />
    <link rel="stylesheet" href="css/indexPhone.css">
    <link rel="icon" href="img/da.ico">
    <style>
        .section { text-align: center; "Microsoft Yahei"; color: #fff;}
    </style>
    <script src="js/jquery-1.12.2.min.js"></script>
    <script src="js/fullpage.min.js"></script>
    <script>
        $(function(){
            $('#dowebok').fullpage({
                sectionsColor: ['', '', '', '','', ''],
                scrollingSpeed: 300,
                anchors:['panel1','panel2','panel3','panel4','panel5']
            });

        });
    </script>
</head>
<body>
<div id="dowebok">
    <div class="section panelColor1" data-anchor="panel1">
        <img src="img/phone/logo.png" alt=""/>
        <a class="aaaaaaaa" data-menuanchor="panel2" href="#panel2"> <img src="img/phone/xiahua.png" alt=""/></a>
        <img  class="downloadApp_btn" src="img/phone/xiazaianniu.png" alt=""/>
    </div>
    <div class="section panelColor2" data-anchor="panel2">
        <img src="img/phone/tu1.png" alt=""/>
        <a data-menuanchor="panel3" href="#panel3"><img src="img/phone/xiahua.png" alt=""/></a>
        <ul>
            <li><img src="img/phone/border1.png" alt=""/></li>
            <li>行业领军者、营销大咖在线分享最实用的营销方案</li>
            <li>分析最赚钱商业模式</li>
            <li>快来与90万营销人共同在线学习</li>
        </ul>
        <!--<div>-->
            <!--<img src="img/phone/fanhui.png" alt=""/><a data-menuanchor="panel1" href="#panel1">返回首页</a>-->
        <!--</div>-->
    </div>
    <div class="section panelColor3" data-anchor="panel3">
        <div class="banner">
            <div id="viewport" class="viewport">
                <div class="pageview" >
                    <img src="img/phone/1.png">
                </div>
                <div class="pageview" >
                    <img src="img/phone/2.png">
                </div>
                <div class="pageview">
                    <img src="img/phone/3.png">
                </div>
                <div class="pageview" >
                    <img src="img/phone/4.png">
                </div>
            </div>
            <div class="pagenumber">
                <div></div>
                <div></div>
                <div></div>
                <div></div>
            </div>
        </div>
        <a data-menuanchor="panel4" href="#panel4"><img src="img/phone/xiahua.png" alt=""/></a>
        <ul>
            <li><img class="" src="img/phone/border2.png" alt=""/></li>
            <li>品牌、渠道、销售... 6大领域专家，在线提供</li>
            <li>营销类知识服务</li>
        </ul>
        <!--<div>-->
            <!--<img src="img/phone/fanhui.png" alt=""/><a data-menuanchor="panel1" href="#panel1">返回首页</a>-->
        <!--</div>-->
    </div>
    <div class="section panelColor4" data-anchor="panel4">
        <img src="img/phone/tu3.png" alt=""/>
        <a data-menuanchor="panel5" href="#panel5"><img src="img/phone/xiahua.png" alt=""/></a>
        <ul>
            <li><img class="" src="img/phone/border3.png" alt=""/></li>
            <li>
                <img class="" src="img/phone/one.png" alt=""/>
                <p>6大方向、35位营销大咖、740节营销实践课，一个营销策略只要0.6元！现在的会员卡包不仅能收20元优惠券，更可分享赚币，直接兑换！</p>
            </li>
            <li>
                <img class="" src="img/phone/two.png" alt=""/>
                <p>对了，会员能优先参与国际国内大型线下活动及项目哦，等你来！</p></li>
        </ul>
        <!--<div>-->
            <!--<img src="img/phone/fanhui.png" alt=""/><a data-menuanchor="panel1" href="#panel1">返回首页</a>-->
        <!--</div>-->
    </div>
    <div id="ssss" class="section panelColor5" data-anchor="panel5">
        <img src="img/phone/article.png" alt=""/>
        <a data-menuanchor="panel6" href="#panel1"><img src="img/phone/top.png" alt=""/></a>
        <ul>
            <li><img class="" src="img/phone/border4.png" alt=""/></li>
            <li>集结各行业营销人才，为你贡献干货精选。睡前、晨起、奔波的路途中... 碎片化时间，针对性阅读，拒绝知识焦虑。</li>
        </ul>
        <!--<div>-->
            <!--<img src="img/phone/fanhui.png" alt=""/><a data-menuanchor="panel1" href="#panel1">返回首页</a>-->
        <!--</div>-->
    </div>
    <!--<div class="section panelColor6" data-anchor="panel6">-->
        <!--<div>-->
            <!--<p>i幸会</p>-->
            <!--<p>让营销领先一步</p>-->
        <!--</div>-->
        <!--<div>i幸会版权所有 联系邮箱：xinghuijun@ixinghui.com</div>-->
        <!--&lt;!&ndash;<div>&ndash;&gt;-->
            <!--&lt;!&ndash;<img src="img/phone/fanhui.png" alt=""/><a data-menuanchor="panel1" href="#panel1">返回首页</a>&ndash;&gt;-->
        <!--&lt;!&ndash;</div>&ndash;&gt;-->
    <!--</div>-->
</div>
<!--<script src="js/fullpage.js"></script>-->
<script>
$('.aaaaaaaa').click(function(){
    console.log(1111)
})
    $(function () {
        var browser = {
            versions: function () {
                var u = navigator.userAgent, app = navigator.appVersion;
                return {         //移动终端浏览器版本信息
                    trident: u.indexOf('Trident') > -1, //IE内核
                    presto: u.indexOf('Presto') > -1, //opera内核
                    webKit: u.indexOf('AppleWebKit') > -1, //苹果、谷歌内核
                    gecko: u.indexOf('Gecko') > -1 && u.indexOf('KHTML') == -1, //火狐内核
                    mobile: !!u.match(/AppleWebKit.*Mobile.*/), //是否为移动终端
                    ios: !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), //ios终端
                    android: u.indexOf('Android') > -1 || u.indexOf('Linux') > -1, //android终端或uc浏览器
                    iPhone: u.indexOf('iPhone') > -1, //是否为iPhone或者QQHD浏览器
                    iPad: u.indexOf('iPad') > -1, //是否iPad
                    webApp: u.indexOf('Safari') == -1, //是否web应该程序，没有头部与底部
                    MQQBrowser: u.indexOf('MQQBrowser') !== -1
                };
            }(),
            language: (navigator.browserLanguage || navigator.language).toLowerCase()
        };
        var ua = navigator.userAgent.toLowerCase();//获取判断用的对象
        var localUrl="";
        if (browser.versions.ios) {
            //直接打开app
            localUrl="iXingHuiScheme://";
            window.location.href=localUrl;
        }
        if(browser.versions.android){
            localUrl="ixinghui://ixinghui.share.com";
            window.location.href = localUrl;
        }
        //直接下载
        $(".downloadApp_btn").on("click", function (e) {
            e.stopPropagation();
            e.preventDefault();
            if (browser.versions.ios){
                window.open("http://a.app.qq.com/o/simple.jsp?pkgname=com.yunxuan.ixinghui")
            } else if (browser.versions.android) {
                window.open("http://a.app.qq.com/o/simple.jsp?pkgname=com.yunxuan.ixinghui")
            } else {
                window.open("http://android.myapp.com/myapp/detail.htm?apkName=com.yunxuan.ixinghui")
            }
        });
    });
    (function(window,document){
        var currentPosition = 0; //记录当前页面位置
        var currentPoint = -1;   //记录当前点的位置
        var pageNow = 1;   //当前页码
        var points = null; //页码数

        var app = {
            init:function(){
                //否则只能在手机上运行
//         if(/(windows)/i.test(navigator.userAgent)){
//             location.href = 'views/pc.html';
//         }
                document.addEventListener('DOMContentLoaded',function(){
                    points = document.querySelectorAll('.pagenumber div') ;
                    app.bindTouchEvent(); //绑定触摸事件
                    app.setPageNow();     //设置初始页码
                }.bind(app),false);
            }(),

            //页面平移
            transform:function(translate){
                this.style.webkitTransform = "translate3d("+translate+"px,0,0)";
                currentPosition = translate;
            },

            /**
             * 设置当前页码
             */
            setPageNow:function(){
                if (currentPoint != -1){
                    points[currentPoint].className = '';
                }
                currentPoint = pageNow - 1;
                points[currentPoint].className = 'now';
            },

            /**
             * 绑定触摸事件
             */
            bindTouchEvent:function(){
                var viewport =  document.querySelector('#viewport');
                var pageWidth = 544; //页面宽度
                var maxWidth = - pageWidth * (points.length-1); //页面滑动最后一页的位置
                var startX,startY;
                var initialPos = 0;  // 手指按下的屏幕位置
                var moveLength = 0;  // 手指当前滑动的距离
                var direction = "left"; //滑动的方向
                var isMove = false; //是否发生左右滑动
                var startT = 0; //记录手指按下去的时间

                /*手指按下时*/
                document.addEventListener("touchstart",function(e){
//                    e.preventDefault();
                    var touch = e.touches[0];
                    startX = touch.pageX;
                    startY = touch.pageY;
                    initialPos = currentPosition;   //本次滑动前的初始位置
                    viewport.style.webkitTransition = ""; //取消动画效果
                    startT = new Date().getTime(); //记录手指按下的开始时间
                    isMove = false;
                }.bind(this),false);

                /*手指在屏幕上滑动，页面跟随手指移动*/
                document.addEventListener("touchmove",function(e){
//                    e.preventDefault();
                    var touch = e.touches[0];
                    var deltaX = touch.pageX - startX;
                    var deltaY = touch.pageY - startY;
                    //如果X方向上的位移大于Y方向，则认为是左右滑动
                    if (Math.abs(deltaX) > Math.abs(deltaY)){
                        moveLength = deltaX;
                        var translate = initialPos + deltaX; //当前需要移动到的位置
                        //如果translate>0 或 < maxWidth,则表示页面超出边界
                        if (translate <=0 && translate >= maxWidth){
                            this.transform.call(viewport,translate);
                            isMove = true;
                        }
                        direction = deltaX>0?"right":"left"; //判断手指滑动的方向
                    }
                }.bind(this),false);

                /*手指离开屏幕时，计算最终需要停留在哪一页*/
                document.addEventListener("touchend",function(e){
//                    e.preventDefault();
                    var translate = 0;
                    //计算手指在屏幕上停留的时间
                    var deltaT = new Date().getTime() - startT;
                    if (isMove){ //发生了左右滑动
                        //使用动画过渡让页面滑动到最终的位置
                        viewport.style.webkitTransition = "0.3s ease -webkit-transform";
                        if(deltaT < 300){ //如果停留时间小于300ms,则认为是快速滑动，无论滑动距离是多少，都停留到下一页
                            translate = direction == 'left'?
                            currentPosition-(pageWidth+moveLength):currentPosition+pageWidth-moveLength;
                            //如果最终位置超过边界位置，则停留在边界位置
                            translate = translate > 0 ? 0 : translate; //左边界
                            translate = translate < maxWidth ? maxWidth : translate; //右边界
                        }else {
                            //如果滑动距离小于屏幕的50%，则退回到上一页
                            if (Math.abs(moveLength)/pageWidth < 0.5){
                                translate = currentPosition-moveLength;
                            }else{
                                //如果滑动距离大于屏幕的50%，则滑动到下一页
                                translate = direction == 'left'?
                                currentPosition-(pageWidth+moveLength):currentPosition+pageWidth-moveLength;
                                translate = translate > 0 ? 0 : translate;
                                translate = translate < maxWidth ? maxWidth : translate;
                            }
                        }
                        //执行滑动，让页面完整的显示到屏幕上
                        this.transform.call(viewport,translate);
                        //计算当前的页码
                        pageNow = Math.round(Math.abs(translate) / pageWidth) + 1;

                        setTimeout(function(){
                            //设置页码，DOM操作需要放到子线程中，否则会出现卡顿
                            this.setPageNow();
                        }.bind(this),100);
                    }
                }.bind(this),false);
            }
        }
    })(window,document);
</script>
</body>
</html>